home *** CD-ROM | disk | FTP | other *** search
- COMSPEC
- Command
- __________________________________________________
- Purpose: To change the path used by DOS to reload
- the command processor after the transient
- portion has been overwritten.
-
-
- Format: COMSPEC [d:][path]filename.ext
-
- Type: Internal External
- ***
-
- Remarks: During execution of a program, it is
- possible for the transient portion of
- the command processor (i.e. COMMAND.COM)
- to be overwritten. DOS expects that this
- may occur, and will automatically reload
- the transient portion if necessary. The
- problem is that DOS always attempts to
- reload the processor from drive A: no
- matter what the COMSPEC string in the
- environment says. This command may be
- used to change the drive/path used by DOS.
-
- For users of RAM disks, and those with
- hard disks (other than the XT which sets
- the path at boot time), this may be just
- what you always wanted. You can tell DOS
- just where to get the file from.
-
- Sample batch file used at boot time:
-
- COMSPEC C:\COMMAND.COM
- SET COMSPEC=C:\COMMAND.COM
-
- The SET command is included to ensure that
- the environment contains the correct path
- to COMMAND.COM also as this is where BASIC
- get the command processor name when using
- the SHELL statement.
-
- Note: The command processor does not have to
- be COMMAND.COM (but it usually is).
-
-
- Permission is granted to all users to freely copy and distribute
- this program provided it is not used for commercial purposes and
- is distributed in an unmodified form. No charge may be made for
- any copies distributed other than to the cost of the media used.
-
-
- Copyright (c) Lindsey S. Mundy. 1983.
- All Rights Reserved.
-
-
- 5913 View Lane,
- Edina MN 55436
-
- (612) 922-3600
-
-